﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="DishUpdForm.aspx.cs" Inherits="App_Input_DishUpdForm" Title="菜肴信息" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<script type="text/javascript">
    function changeimg(str)
    {
        //alert(str);
        var obj=window.document.getElementById("ctl00_ContentPlaceHolder1_Image1");
        //alert(obj.src);
        obj.src=str;
    }
</script>
    <cc1:comvalidator id="ComValidator1" runat="server" checkitems-capacity="4"><cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtName"><cc1:ComAbsParamsAttribute Parameter="菜肴名称"></cc1:ComAbsParamsAttribute>
</cc1:CheckRequiredAttribute>
<cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtPrice"><cc1:ComAbsParamsAttribute Parameter="菜肴单价"></cc1:ComAbsParamsAttribute>
</cc1:CheckRequiredAttribute>
<cc1:CheckDoubleAttribute IntLen="6" Code="E0064" DecLen="2" ControlToValidator="txtPrice"><cc1:ComAbsParamsAttribute Parameter="菜肴单价"></cc1:ComAbsParamsAttribute>
<cc1:ComAbsParamsAttribute Parameter="6"></cc1:ComAbsParamsAttribute>
<cc1:ComAbsParamsAttribute Parameter="2"></cc1:ComAbsParamsAttribute>
</cc1:CheckDoubleAttribute>
</cc1:comvalidator>
    <br />
    <table class="table_border_line">
        <tr>
            <th colspan="5" align="left" style="text-align: left;">

                <script language="javascript">
        (new TitleBar('SearchBar', '菜肴信息')).showBar();
                </script>

            </th>
        </tr>
        <tr>
            <td style="width: 5%; white-space: nowrap; height: 6px; text-align: right">
            </td>
            <td style="width: 10%; white-space: nowrap; height: 6px; text-align: left">
            </td>
            <td style="width: 38%; white-space: nowrap; height: 6px; text-align: left">
            </td>
            <td style="width: 33px; white-space: nowrap; height: 6px; text-align: left">
            </td>
            <td style="white-space: nowrap; height: 6px; text-align: left">
            </td>
        </tr>
        <tr>
            <td style="white-space:nowrap; width:5%; height:25px; text-align:right;">
                <span style="color: #ff7300">*</span></td>
            <td style="white-space:nowrap; width:10%; height:25px; text-align:left;">
                菜肴名称</td>
            <td style="white-space:nowrap; width:38%; height:25px; text-align:left;">
                <asp:TextBox ID="txtName" runat="server" Width="150px" MaxLength="100"></asp:TextBox></td>
            <td style="width: 33px; white-space: nowrap; height: 25px; text-align: left">
                图片</td>
            <td style="white-space: nowrap; height: 25px; text-align: left">
                <asp:FileUpload ID="FileUpload1" runat="server" onchange="changeimg(this.value);" /></td>
        </tr>
        <tr>
            <td style="white-space:nowrap; width:5%; height:25px; text-align:right;">
                <span style="color: #ff7300">*</span></td>
            <td style="white-space:nowrap; width:10%; height:25px; text-align:left;">
                菜肴单价</td>
            <td style="white-space:nowrap; width:38%; height:25px; text-align:left;">
                <asp:TextBox ID="txtPrice" runat="server" Width="150px"></asp:TextBox></td>
            <td style="width: 33px; white-space: nowrap; height: 25px; text-align: left">
            </td>
            <td style="white-space: nowrap; text-align: left; vertical-align:top;" rowspan="8">
                <asp:Image ID="Image1" runat="server" Height="255px" ImageUrl="~/images/PHOTO.gif"
                    Width="240px" /></td>
        </tr>
        <tr>
            <td style="white-space:nowrap; width:5%; height:25px; text-align:right;"></td>
            <td style="white-space:nowrap; width:10%; height:25px; text-align:left;">
                送菜类别</td>
            <td style="white-space:nowrap; width:38%; height:25px; text-align:left;">
                <asp:DropDownList ID="DrpDelivery" runat="server" DataTextField="Content" DataValueField="DictNo" Width="150px">
                </asp:DropDownList></td>
            <td style="width: 33px; white-space: nowrap; height: 25px; text-align: left">
                </td>
        </tr>
        <tr>
            <td style="white-space:nowrap; width:5%; height:25px; text-align:right;"></td>
            <td style="white-space:nowrap; width:10%; height:25px; text-align:left;">
                荤素类别</td>
            <td style="white-space:nowrap; width:38%; height:25px; text-align:left;">
                <asp:DropDownList ID="DrpClass" runat="server" DataTextField="Content" DataValueField="DictNo" Width="150px">
                </asp:DropDownList></td>
            <td style="width: 33px; white-space: nowrap; height: 25px; text-align: left">
                </td>
        </tr>
        <tr>
            <td style="white-space:nowrap; width:5%; height:25px; text-align:right;"></td>
            <td style="white-space:nowrap; width:10%; height:25px; text-align:left;">
                菜式类别</td>
            <td style="white-space:nowrap; width:38%; height:25px; text-align:left;">
                <asp:DropDownList ID="DrpType" runat="server" DataTextField="Content" DataValueField="DictNo" Width="150px">
                </asp:DropDownList></td>
            <td style="width: 33px; height:25px; white-space: nowrap; text-align: left">
            </td>
        </tr>
        <tr style="display:none;">
            <td style="width: 5%; white-space: nowrap; height: 25px; text-align: right">
            </td>
            <td style="width: 10%; white-space: nowrap;  text-align: left">
                用餐时间</td>
            <td style="width: 38%; white-space: nowrap;  text-align: left">
                <asp:DropDownList ID="DrpTime" runat="server" DataTextField="Content" DataValueField="DictNo" Width="150px">
                </asp:DropDownList></td>
            <td style="width: 33px; white-space: nowrap; text-align: left">
            </td>
        </tr>
        <tr>
            <td style="width: 5%; white-space: nowrap; height: 25px; text-align: right">
            </td>
            <td style="width: 10%; white-space: nowrap; height: 25px; text-align: left">
                套菜类别</td>
            <td style="width: 38%; white-space: nowrap; height: 25px; text-align: left">
                <asp:DropDownList ID="DrpKind" runat="server" DataTextField="Content" DataValueField="DictNo" Width="150px">
                </asp:DropDownList></td>
            <td style="width: 33px; white-space: nowrap; height: 25px; text-align: left">
            </td>
        </tr>
        <tr>
            <td style="width: 5%; white-space: nowrap; height: 25px; text-align: right">
            </td>
            <td style="width: 10%; white-space: nowrap; height: 25px; text-align: left">
                菜肴备注</td>
            <td style="width: 38%; white-space: nowrap; height: 25px; text-align: left">
                <asp:TextBox ID="txtMemo" runat="server" Width="211px" MaxLength="100"></asp:TextBox></td>
            <td style="width: 33px; white-space: nowrap; height: 25px; text-align: left">
            </td>
        </tr>
        <tr>
            <td style="width: 5%; white-space: nowrap; height: 25px; text-align: right">
            </td>
            <td style="width: 10%; white-space: nowrap; height: 25px; text-align: left">
                菜肴描述</td>
            <td style="width: 38%; white-space: nowrap; height: 25px; text-align: left">
                <asp:TextBox ID="txtDescription" runat="server" Rows="5" TextMode="MultiLine" Width="214px" MaxLength="400"></asp:TextBox></td>
            <td style="width: 33px; white-space: nowrap; height: 25px; text-align: left">
            </td>
        </tr>
        <tr>
            <td style="width: 5%; white-space: nowrap; height: 25px; text-align: right">
            </td>
            <td style="width: 10%; white-space: nowrap; height: 25px; text-align: left">
                饮食忌讳</td>
            <td style="white-space: nowrap; height: 25px; text-align: left" colspan="3">
                <asp:CheckBoxList ID="ChkFoodType" runat="server" DataTextField="Content" DataValueField="DictNo"
                    RepeatColumns="8">
                </asp:CheckBoxList></td>
        </tr>
    </table>
    <br />
    <table class="table_border_line">
    <tr>
        <td style=" text-align:center; height: 22px;">
            <asp:Button ID="save" runat="server" CssClass="button" OnClientClick="return window.confirm('是否登记？');"
                Text="登 记" Width="102px" OnClick="save_Click" />&nbsp;<asp:Button ID="postBack" runat="server" CssClass="button" Text="返 回" Width="94px" OnClick="postBack_Click" /></td>
    </tr>
    </table>
</asp:Content>
